package com.huilian.iotbox.admin.wap.controller;

import com.huilian.iotbox.admin.wap.service.BlackListTypeService;
import com.huilian.iotbox.data.common.ServerResponse;
import com.huilian.iotbox.data.controller.BaseController;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 龙 路 飞
 * @CreateDate: 2021-11-27 13:56
 * @Description:
 */
@RestController
@RequestMapping("/api/blackListType")
public class BlackListTypeController extends BaseController {
    @Autowired
    private BlackListTypeService blackListTypeService;

    @GetMapping("/findAll")
    public ServerResponse findAll(){
        return ServerResponse.createBySuccess(blackListTypeService.findAll());
    }
}
